package com.lyy.blog.dao;

import com.lyy.blog.po.type;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface typerepositroy extends JpaRepository<type,Long> {

  type  findByName(String name);

  @Query("select t from type t")
  List<type> findTop(Pageable pageable);

}
